import ajax from '@/utils/ajax'

/**
 * @module 账号管理
 */

// 账号列表
export const getList = params => ajax.post('login/getSonAccountList', params)

// 新增账号
export const addAccount = params => ajax.post('login/createAccount', params)

// 修改
export const modifyAccount = params => ajax.post('login/updateAccount', params)

// 获取验证码
export const sendCode = params => ajax.post('login/sendVerificationCode', params)

// 获取商户角色
export const roleList = params => ajax.post('login/getRoleList', params)

// 获取油站
export const gasStationList = params => ajax.post('login/getAllDataPermission', params)

// 获取数据权限
// export const getDataPermission = params => ajax.post('login/getDataPermissionByUserId', params)
export const getDataPermission = params => ajax.post('login/getAccountDetail', params)

// 获取分组列表
export const getAllDataPermissionGroup = params => ajax.post('login/getAllDataPermissionGroup', params)

// 绑定微信
export const bindWxApi = params => ajax.post('login/bindWxPos', params)

// 解绑微信
export const unbindWxApi = params => ajax.post('login/unBindWxPos', params)
